import { reqGetFloorList } from "@/api/index"
const state = {
    floorList: []
}
const mutations = {
    updateFloorList(state, newFloorList) {
        state.floorList = newFloorList
    }
}
const actions = {
    async getApiFloorList(context) {
        const res = await reqGetFloorList()
        context.commit('updateFloorList', res.data)

    }
}
const getters = {}
export default {
    namespaced: true,
    state,
    mutations,
    actions,
    getters
}